home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / ASSEMBLE / H235A.ZIP / ASM_0_M.ZIP / INT.DOC < prev    next >
Text File  |  1985-01-17  |  2KB  |  26 lines

  1. int.com  ---  written by John N. White for the Tandy 2000 with ms-dos 2.x
  2. int.com allows a program to be interupted at any time (not just when a
  3. function call is being processed).
  4.  
  5. To use, just run int.com (note: only run it one time after a bootup).
  6. Then, to interupt a program, hold down both shift keys and the alt key all
  7. at the same time untill the program terminates. The cs and ip registers
  8. will be displayed.
  9.  
  10. This is a terminate and stay resident program. Every time an int 1C (hex)
  11. occures, (from the timer, about 20 times a second) the location of the
  12. routine that was being executed is examined. If the code follows the
  13. end of the int.com code then a bios call (16h with ah=2) is done to check
  14. the shift status of the keyboard. If the appropriate keys are being held
  15. down, then the return address to the program is modified to point to
  16. a program terminate function call in int.com .
  17. If more than one terminate-and-stay-resident programs will be run, this
  18. should be the last one because it may interupt any program that follows it.
  19. int.com will not interupt code preceeding it so dos function calls and
  20. system interupt handlers will not be interupted. This means that no interupt
  21. will occur if a program is waiting for keyboard input as a bios call handles
  22. that. Also, no interupt will occur if the keyboard hold is on.
  23. Interupts must be enabled or the timer tick won't be seen. Normally programs
  24. start with interupts enabled but in debug they start disabled. Interupts
  25. can be enabled in debug by typeing rf followed by ei .
  26.